@extends('layouts.login-marster')
@section('login')
<div class="loginWrap">
<img src="{{asset('zjx/image/slogan.jpg')}}">
    <div class="login-box">
    <form class="form-signin" action="{{url('zjxhome/doLogin')}}" method="post">
        {{csrf_field()}}
        <h2 class="form-signin-heading">邮箱登录</h2>
        <label for="inputEmail"  class="sr-only">邮箱:</label>
        <input type="email" name="email" id="inputEmail" class="form-control" placeholder="请输入邮箱" required="" autofocus="">
        <label for="inputname" class="sr-only">昵称</label>
        <input type="text" name="nickname" class="form-control" placeholder="请输入用户名">
        <label for="inputPassword" class="sr-only">密码:</label>
        <input type="password" name="password" id="inputPassword" class="form-control" placeholder="请输入密码" required="">
        <div class="checkbox">
            <label>
                <input type="checkbox" value="remember-me">记住我
                <a href="">忘记密码</a>
                <a href="{{url('zjxhome/register')}}">注册账号</a>
            </label>
        </div>
        <button class="btn btn-lg btn-primary btn-block" type="submit">登录</button>
        @if(!empty(session('zjxemail')))
            <script>alert('邮箱不能为空')</script>
        @endif
        @if(!empty(session('zjxpassword')))
            <script>alert('密码不能为空')</script>
        @endif
    </form>
    </div>
</div>
@endsection